package com.lam;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 启动程序
 * 
 * @author lam
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class AmMallApplication extends SpringBootServletInitializer {
	
	private static final Logger logger = LoggerFactory.getLogger(AmMallApplication.class);
	
    public static void main(String[] args){
    	
        System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(AmMallApplication.class, args);
        logger.info("(♥◠‿◠)ﾉﾞ  LAM 快速开发框架启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                "  	\n" +
                "                                                                                        \r\n" + 
                "                                                                                        \r\n" + 
                "LLLLLLLLLLL                            AAA               MMMMMMMM               MMMMMMMM\r\n" + 
                "L:::::::::L                           A:::A              M:::::::M             M:::::::M\r\n" + 
                "L:::::::::L                          A:::::A             M::::::::M           M::::::::M\r\n" + 
                "LL:::::::LL                         A:::::::A            M:::::::::M         M:::::::::M\r\n" + 
                "  L:::::L                          A:::::::::A           M::::::::::M       M::::::::::M\r\n" + 
                "  L:::::L                         A:::::A:::::A          M:::::::::::M     M:::::::::::M\r\n" + 
                "  L:::::L                        A:::::A A:::::A         M:::::::M::::M   M::::M:::::::M\r\n" + 
                "  L:::::L                       A:::::A   A:::::A        M::::::M M::::M M::::M M::::::M\r\n" + 
                "  L:::::L                      A:::::A     A:::::A       M::::::M  M::::M::::M  M::::::M\r\n" + 
                "  L:::::L                     A:::::AAAAAAAAA:::::A      M::::::M   M:::::::M   M::::::M\r\n" + 
                "  L:::::L                    A:::::::::::::::::::::A     M::::::M    M:::::M    M::::::M\r\n" + 
                "  L:::::L         LLLLLL    A:::::AAAAAAAAAAAAA:::::A    M::::::M     MMMMM     M::::::M\r\n" + 
                "LL:::::::LLLLLLLLL:::::L   A:::::A             A:::::A   M::::::M               M::::::M\r\n" + 
                "L::::::::::::::::::::::L  A:::::A               A:::::A  M::::::M               M::::::M\r\n" + 
                "L::::::::::::::::::::::L A:::::A                 A:::::A M::::::M               M::::::M\r\n" + 
                "LLLLLLLLLLLLLLLLLLLLLLLLAAAAAAA                   AAAAAAAMMMMMMMM               MMMMMMMM\r\n" + 
                "                                                                                        \r\n" + 
                "                                                                                        ");  
    }
    
    @Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(AmMallApplication.class);
	}
}                                                                                               
